import Vue from "vue";
import VueRouter from "vue-router";
import Q1 from "../views/Q1/index.vue";
import Q2 from "../views/Q2/index.vue";
import Q3 from "../views/Q3/index.vue";
import Q4 from "../views/Q4/index.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/Q1", // 默认重定向到 Q1 页面
  },
  {
    path: "/Q1",
    name: "Q1",
    component: Q1,
  },
  {
    path: "/Q2",
    name: "Q2",
    component: Q2,
  },
  {
    path: "/Q3",
    name: "Q3",
    component: Q3,
  },
  {
    path: "/Q4",
    name: "Q4",
    component: Q4,
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
